/**
 * @author zowie
 * @dete 2022-1-11
 * @function 得出字符串中元音字母个数
 * @param {string} str
 * @return {numer} vowelsCount
 */


function getCount(str) {
  var n = str.replace(/[aeiouAEIOU]/g, '');
  // console.log(n);
  // console.log(typeof(n))
  var t = n.length;
  console.log(t);

  var vowelsCount = str.length - t;
  return vowelsCount;
}



console.log(getCount('abracadabra'));

